import _ from 'lodash'
import EN_US from './en-us'
import ZH_CN from './zh-cn'

let defaultLocale = 'ZH_CN'
let currentLocale = null

let locales = {
  EN_US,
  ZH_CN
}

export default {
  CurrentLocale: locales[currentLocale || defaultLocale],
  GetLocale (path) {
    return _.get(locales[currentLocale || defaultLocale], path)
  },
  SetLocale (locale) {
    currentLocale = locale
  }
}
